package Multithreading.Thread;

public class SleepDemo {
    public static void main(String[] args) throws InterruptedException {
        slowly("太阳在这个平静的小村庄缓缓升起，又是开始了平常的一天。我们故事的主人公睡眼惺忪起来\t",300);
    }

    public static void slowly(String text, long interval) throws InterruptedException {
        for(char ch : text.toCharArray()){
            Thread.sleep(interval);
            System.out.println(ch);
        }
        System.out.println();
    }
}
